package com.hushow.plugin.brick;

import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;

/**
 * 插件1生命周期钩子
 */
public class Plugin1 extends Plugin {

    public Plugin1(PluginWrapper wrapper) {
        super(wrapper);
    }

    @Override
    public void start() {
        log.info("{} plugin started", getWrapper().getPluginId());
        // 初始化数据库连接、线程池等资源
    }


    @Override
    public void stop() {
        log.info("{} plugin stopped", getWrapper().getPluginId());
        // 释放资源
    }


    @Override
    public void delete() {
        super.delete();
        log.info("{} plugin deleted", getWrapper().getPluginId());
        // 清理持久化数据
    }
}
